﻿<UserControl x:Class="Hockey.UILayer.Views.PlayerLabel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:ctrl="clr-namespace:Hockey.UILayer.Controls"
             xmlns:service="clr-namespace:MVVMDialogs;assembly=MVVMDialog"              
             service:DialogService.IsRegisteredView="True"                 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="600">
    <UserControl.Resources>
        <LinearGradientBrush x:Key="uxLabelBackground">
            <GradientStop Color="GreenYellow" Offset="0" />
            <GradientStop Color="LightGreen" Offset="1" />
        </LinearGradientBrush>
    </UserControl.Resources>
    <Grid >
        <Border x:Name="uxBorder" CornerRadius="15" BorderBrush="Black" BorderThickness="3" Margin="10" Background="{StaticResource uxLabelBackground}">
            <Border.Effect>
                <DropShadowEffect />
            </Border.Effect>
                <Grid>       
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>

                <ctrl:FontAdaptiveTextBlock  Grid.Column="0"  Content="{Binding Path=PlayerName, Mode=OneWay}"  VerticalAlignment="Center"  />
                <ctrl:Arrow x:Name="uxArrow" Grid.Column="1" IsEnabled="True" Fill="Green" Margin="10" StrokeThickness="2" Stroke="Black" />
            </Grid>
        </Border>
    </Grid>
</UserControl>
